package com.zjsd.sqeybusiness.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 省市区县字典对象 sys_area
 * 
 * @author jerri
 * @date 2024-05-21
 */
public class SysArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 父级街道编码 */
    @Excel(name = "父级街道编码")
    private String streetcode;

    /** 父级区域编码 */
    @Excel(name = "父级区域编码")
    private String areacode;

    /** 父级市编码 */
    @Excel(name = "父级市编码")
    private String citycode;

    /** 父级省编码 */
    @Excel(name = "父级省编码")
    private String provincecode;

    /** 等级 */
    @Excel(name = "等级")
    private String level;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStreetcode(String streetcode) 
    {
        this.streetcode = streetcode;
    }

    public String getStreetcode() 
    {
        return streetcode;
    }
    public void setAreacode(String areacode) 
    {
        this.areacode = areacode;
    }

    public String getAreacode() 
    {
        return areacode;
    }
    public void setCitycode(String citycode) 
    {
        this.citycode = citycode;
    }

    public String getCitycode() 
    {
        return citycode;
    }
    public void setProvincecode(String provincecode) 
    {
        this.provincecode = provincecode;
    }

    public String getProvincecode() 
    {
        return provincecode;
    }
    public void setLevel(String level) 
    {
        this.level = level;
    }

    public String getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("streetcode", getStreetcode())
            .append("areacode", getAreacode())
            .append("citycode", getCitycode())
            .append("provincecode", getProvincecode())
            .append("level", getLevel())
            .toString();
    }
}
